package com.ssy.lingxi.member.merchant.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 会员注册资料状态枚举
 * @author 万宁
 * @date 2020-07-01
 * @version 2.0.0
 */
public enum MemberConfigStatusEnum {
    /**
     * 停用、无效 - 0
     */
    DISABLED(0, "停用"),

    /**
     * 启用、有效 - 1
     */
    ENABLED(1, "启用");

    private final Integer code;

    MemberConfigStatusEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }
}
